package com.mjt.admin.service.impl;

import com.mjt.admin.mapper.RoleMapper;
import com.mjt.admin.pojo.RoleMenu;
import com.mjt.admin.mapper.RoleMenuMapper;
import com.mjt.admin.service.IRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 角色菜单表 服务实现类
 * </p>
 *
 * @author 莫某人
 * @since 2021-10-27
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements IRoleMenuService {

    @Resource
    private RoleMapper roleMapper;


    @Override
    public List<String> selectAuthoritiesByRoleName(List<String> roleNames) {
        return roleMapper.selectAuthoritiesByRoleName(roleNames);
    }
}
